home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / plugin / nsIPluginStreamInfo.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  175 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPluginStreamInfo.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPluginStreamInfo_h__
  6. #define __gen_nsIPluginStreamInfo_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nspluginroot_h__
  14. #include "nspluginroot.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. #include "nsplugindefs.h"
  22.  
  23. /* starting interface:    nsIPluginStreamInfo */
  24. #define NS_IPLUGINSTREAMINFO_IID_STR "ed7d4ca0-b005-11d2-adaa-00805f6dec49"
  25.  
  26. #define NS_IPLUGINSTREAMINFO_IID \
  27.   {0xed7d4ca0, 0xb005, 0x11d2, \
  28.     { 0xad, 0xaa, 0x00, 0x80, 0x5f, 0x6d, 0xec, 0x49 }}
  29.  
  30. class NS_NO_VTABLE nsIPluginStreamInfo : public nsISupports {
  31.  public: 
  32.  
  33.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPLUGINSTREAMINFO_IID)
  34.  
  35.   /* readonly attribute nsMIMEType contentType; */
  36.   NS_IMETHOD GetContentType(nsMIMEType *aContentType) = 0;
  37.  
  38.   /* void isSeekable (out boolean aSeekable); */
  39.   NS_IMETHOD IsSeekable(PRBool *aSeekable) = 0;
  40.  
  41.   /* readonly attribute unsigned long length; */
  42.   NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  43.  
  44.   /* readonly attribute unsigned long lastModified; */
  45.   NS_IMETHOD GetLastModified(PRUint32 *aLastModified) = 0;
  46.  
  47.   /* void getURL (out constCharPtr aURL); */
  48.   NS_IMETHOD GetURL(const char * *aURL) = 0;
  49.  
  50.   /* void requestRead (in nsByteRangePtr aRangeList); */
  51.   NS_IMETHOD RequestRead(nsByteRange * aRangeList) = 0;
  52.  
  53.   /* attribute long streamOffset; */
  54.   NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) = 0;
  55.   NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) = 0;
  56.  
  57. };
  58.  
  59. /* Use this macro when declaring classes that implement this interface. */
  60. #define NS_DECL_NSIPLUGINSTREAMINFO \
  61.   NS_IMETHOD GetContentType(nsMIMEType *aContentType); \
  62.   NS_IMETHOD IsSeekable(PRBool *aSeekable); \
  63.   NS_IMETHOD GetLength(PRUint32 *aLength); \
  64.   NS_IMETHOD GetLastModified(PRUint32 *aLastModified); \
  65.   NS_IMETHOD GetURL(const char * *aURL); \
  66.   NS_IMETHOD RequestRead(nsByteRange * aRangeList); \
  67.   NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset); \
  68.   NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset); 
  69.  
  70. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  71. #define NS_FORWARD_NSIPLUGINSTREAMINFO(_to) \
  72.   NS_IMETHOD GetContentType(nsMIMEType *aContentType) { return _to GetContentType(aContentType); } \
  73.   NS_IMETHOD IsSeekable(PRBool *aSeekable) { return _to IsSeekable(aSeekable); } \
  74.   NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  75.   NS_IMETHOD GetLastModified(PRUint32 *aLastModified) { return _to GetLastModified(aLastModified); } \
  76.   NS_IMETHOD GetURL(const char * *aURL) { return _to GetURL(aURL); } \
  77.   NS_IMETHOD RequestRead(nsByteRange * aRangeList) { return _to RequestRead(aRangeList); } \
  78.   NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) { return _to GetStreamOffset(aStreamOffset); } \
  79.   NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) { return _to SetStreamOffset(aStreamOffset); } 
  80.  
  81. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  82. #define NS_FORWARD_SAFE_NSIPLUGINSTREAMINFO(_to) \
  83.   NS_IMETHOD GetContentType(nsMIMEType *aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
  84.   NS_IMETHOD IsSeekable(PRBool *aSeekable) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSeekable(aSeekable); } \
  85.   NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  86.   NS_IMETHOD GetLastModified(PRUint32 *aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
  87.   NS_IMETHOD GetURL(const char * *aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
  88.   NS_IMETHOD RequestRead(nsByteRange * aRangeList) { return !_to ? NS_ERROR_NULL_POINTER : _to->RequestRead(aRangeList); } \
  89.   NS_IMETHOD GetStreamOffset(PRInt32 *aStreamOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStreamOffset(aStreamOffset); } \
  90.   NS_IMETHOD SetStreamOffset(PRInt32 aStreamOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStreamOffset(aStreamOffset); } 
  91.  
  92. #if 0
  93. /* Use the code below as a template for the implementation class for this interface. */
  94.  
  95. /* Header file */
  96. class nsPluginStreamInfo : public nsIPluginStreamInfo
  97. {
  98. public:
  99.   NS_DECL_ISUPPORTS
  100.   NS_DECL_NSIPLUGINSTREAMINFO
  101.  
  102.   nsPluginStreamInfo();
  103.  
  104. private:
  105.   ~nsPluginStreamInfo();
  106.  
  107. protected:
  108.   /* additional members */
  109. };
  110.  
  111. /* Implementation file */
  112. NS_IMPL_ISUPPORTS1(nsPluginStreamInfo, nsIPluginStreamInfo)
  113.  
  114. nsPluginStreamInfo::nsPluginStreamInfo()
  115. {
  116.   /* member initializers and constructor code */
  117. }
  118.  
  119. nsPluginStreamInfo::~nsPluginStreamInfo()
  120. {
  121.   /* destructor code */
  122. }
  123.  
  124. /* readonly attribute nsMIMEType contentType; */
  125. NS_IMETHODIMP nsPluginStreamInfo::GetContentType(nsMIMEType *aContentType)
  126. {
  127.     return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129.  
  130. /* void isSeekable (out boolean aSeekable); */
  131. NS_IMETHODIMP nsPluginStreamInfo::IsSeekable(PRBool *aSeekable)
  132. {
  133.     return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135.  
  136. /* readonly attribute unsigned long length; */
  137. NS_IMETHODIMP nsPluginStreamInfo::GetLength(PRUint32 *aLength)
  138. {
  139.     return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141.  
  142. /* readonly attribute unsigned long lastModified; */
  143. NS_IMETHODIMP nsPluginStreamInfo::GetLastModified(PRUint32 *aLastModified)
  144. {
  145.     return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147.  
  148. /* void getURL (out constCharPtr aURL); */
  149. NS_IMETHODIMP nsPluginStreamInfo::GetURL(const char * *aURL)
  150. {
  151.     return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153.  
  154. /* void requestRead (in nsByteRangePtr aRangeList); */
  155. NS_IMETHODIMP nsPluginStreamInfo::RequestRead(nsByteRange * aRangeList)
  156. {
  157.     return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159.  
  160. /* attribute long streamOffset; */
  161. NS_IMETHODIMP nsPluginStreamInfo::GetStreamOffset(PRInt32 *aStreamOffset)
  162. {
  163.     return NS_ERROR_NOT_IMPLEMENTED;
  164. }
  165. NS_IMETHODIMP nsPluginStreamInfo::SetStreamOffset(PRInt32 aStreamOffset)
  166. {
  167.     return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169.  
  170. /* End of implementation class template. */
  171. #endif
  172.  
  173.  
  174. #endif /* __gen_nsIPluginStreamInfo_h__ */
  175.